package gizwits.openapi;

import gizwits.kit.HashKit;

/**
 *
 * Created by Robo on 2017/10/23.
 */
public class RegisterUtil {


    private static String rongs_app_id = "42f7f11c8e994f3eb326fcb5d90cf6e6";
    private static String rongs_app_secret = "4e4d3c58e11b46f39f5a4b0f0a1d2f7d";
    private static String rongs_ios_app_id = "de72c4b82d7b411faeb34578bd43f569";
    private static String rongs_ios_app_secret = "8036935360804606a316472e8a2b238f";
    private static String kaola_app_id = "315273defbe649d9b630b108e8582366";
    private static String kaola_app_id2 = "294578225c7b467b856483f621ade1bc";
    private static String kaola_app_secret = "5266bf754b1246e59926a1263ac9737f";

    //计算用来获取appToken的字符串(需要先点右上角的auth填写appid才可以获取)
    public static String getAuthStr(String appid, String appSecret) {
        return HashKit.md5(appid + appSecret).toLowerCase();
    }
    public static void main(String[] args) {
        System.out.println(getAuthStr(rongs_app_id, rongs_app_secret));
    }
}
